package com.zbkj.crmeb.merchant.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.PageParamRequest;
import com.github.pagehelper.PageInfo;
import com.zbkj.crmeb.export.vo.ProductExcelVo;
import com.zbkj.crmeb.store.model.StoreProduct;
import com.zbkj.crmeb.store.request.StoreProductSearchRequest;
import com.zbkj.crmeb.store.response.StoreProductNormResponse;
import com.zbkj.crmeb.store.response.StoreProductResponse;
import com.zbkj.crmeb.store.response.StoreProductTabsHeader;

import java.util.List;

/**
 * @author lvmd
 * @description MerAgentStoreProductService 接口
 * @date 2022-02-22
 */
public interface MerAgentStoreProductService extends IService<StoreProduct> {

    /**
     * 商品列表
     *
     * @param request
     * @param pageParamRequest
     * @return
     */
    PageInfo<StoreProductResponse> listStoreProducts(StoreProductSearchRequest request, PageParamRequest pageParamRequest);

    /**
     * 云仓商品详情
     *
     * @param id
     * @return
     */
    StoreProductNormResponse getSupplierByProductId(Integer id, Integer merId);

    /**
     * 自建商品详情
     *
     * @param id
     * @return
     */
    StoreProductResponse getByProductId(Integer id, Integer merId);

    /**
     * 商品表头数量
     *
     * @param type
     * @return
     */
    List<StoreProductTabsHeader> getTabsHeader(int type);

    /**
     * 商品导出
     *
     * @param request
     * @param pageParamRequest
     * @return
     */
    List<ProductExcelVo> getExportList(StoreProductSearchRequest request, PageParamRequest pageParamRequest);
}
